package com.xiaoyu.tool.exception;


import com.xiaoyu.tool.enums.ResultEnum;

public class WechatAlipayToolException extends RuntimeException{

    private Integer code;

    public WechatAlipayToolException(ResultEnum resultEnum) {
        super(resultEnum.getMessage());

        this.code = resultEnum.getCode();
    }

    public WechatAlipayToolException(Integer code, String message) {
        super(message);
        this.code = code;
    }
}
